package services
{
	import flash.desktop.NativeApplication;
	import flash.display.NativeWindow;
	
	import mx.core.FlexGlobals;

	public class ServiceAppInfo implements IServiceAppInfo
	{
		public function ServiceAppInfo()
		{
		}
		
		public function get version() : String {
			var descriptor : XML = NativeApplication.nativeApplication.applicationDescriptor;				
			var ns : Namespace = descriptor.namespaceDeclarations()[0] as Namespace;				
			var version : String = descriptor.ns::versionNumber;
			return version;
		}
		public function get appName() : String {
			var descriptor : XML = NativeApplication.nativeApplication.applicationDescriptor;				
			var ns : Namespace = descriptor.namespaceDeclarations()[0] as Namespace;				
			var name : String = descriptor.ns::name;
			return name;
		}
	}
}